win32 theme: Fix popup window decorations
authorJaime Velasco Juan <jsagarribay@gmail.com>
Fri, 14 Oct 2016 09:49:55 +0000 (10:49 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 26 Oct 2016 14:25:49 +0000 (16:25 +0200)
Windows such as combobox's popup were using toplevel window's borders

https://bugzilla.gnome.org/show_bug.cgi?id=773221

gtk/theme/win32/gtk.css

index dd0f2547a24ba66fdeeec84d10594a868091560a..b9384b769968e12a444ea4ddb5e6136f9bb9b29b 100644 (file)
@@ -123,6 +123,12 @@ decoration {
   background-position: top, bottom, left, right;
   background-repeat: no-repeat;
 }
+
+/* Unset above settings when the window is a popup menu */
+* window decoration {
+    all: unset;
+}
+
 .titlebar { 
   margin: calc(0px - -gtk-win32-size(window, cyframe) - -gtk-win32-size(window, cxpaddedborder))
           calc(0px - -gtk-win32-size(window, cxframe) - -gtk-win32-size(window, cxpaddedborder));